package org.base.sys.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import org.base.common.annotation.JsonEnum;
import org.base.common.pojo.BasePojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.base.sys.enums.Visible;

/**
 * <p>
 * 菜单权限表
 * </p>
 *
 * @author AutoGenerator
 * @since 2020-05-27
 */
@Data
  @EqualsAndHashCode(callSuper = true)
  @Accessors(chain = true)
@TableName("t_sys_menu_permission")
@ApiModel(value="SysMenuPermission对象", description="菜单权限表")
public class SysMenuPermission extends BasePojo {

    private static final long serialVersionUID=1L;

      @ApiModelProperty(value = "父ID")
      private Long parentId;

      @ApiModelProperty(value = "名称")
      private String name;

      @ApiModelProperty(value = "编码")
      private String code;

      @ApiModelProperty(value = "权限字符串")
      private String permKey;

      @ApiModelProperty(value = "显示顺序")
      private Integer seq;

      @ApiModelProperty(value = "菜单类型（1目录 2菜单 3按钮）")
      private Integer type;

      @ApiModelProperty(value = "请求路径")
      private String path;

      @ApiModelProperty(value = "重定向路径")
      private String redirect;

      @ApiModelProperty(value = "菜单图标")
      private String icon;

      @ApiModelProperty(value = "菜单状态（0隐藏 1显示）")
      @JsonEnum(Visible.class)
      private Integer visible;

      private String component;
}
